﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AMS.Core.Services;
using AMS.Core.Data;

namespace AMS.DD35.ServiceLib.Tests
{
    class MockRegisterService : IRegisterService
    {
        // should RegisterService raise Success or Fail events?
        // yes, but not until I can figure out duplex messaging in WCF
        public void AttemptRegister(RegistrationData registrationData)
        {
            if (registrationData.LoginData.Username != "newUsername")
                throw new Exception("username exists");
        }
    }
}
